#include<cstdio>
#include<algorithm>

int n, I, h, R;

struct node{
	int l, r;

	friend bool operator<(const node a, const node b)
	{

	}
};



int main()
{
	scanf("%d %d %d %d", &n, &I, &h, &R);

	for(int i=1; i<=n; ++i)
	{
		scanf("%d %d", )
	}
}
